import React from 'react';
import Page from 'components/page/index';


export default class HomePage extends React.Component {

  handleClick = () => {
    import(/* webpackChunkName: "lodash" */ 'lodash').then(_ => {
      alert(_.join(['Hello', 'webpack'], ' '));
    })
  };

  render() {
    return (
      <Page className='home-page'>
        <a href="javascript:void(0);" onClick={this.handleClick}>Click me!</a>
      </Page>
    )
  }

}
